----------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/boydstun/Dropbox/Political Actors/Data/descriptor data/coded d
> ata/Analysis/analysis_replication.log
  log type:  text
 opened on:  15 Feb 2019, 16:59:09

. 
. *#delimit ;
. set more off 

. 
. *     ***************************************************************   *
. *       File-Name:      analysis_replication.do                                 
>         *
. *       Date:           August 4, 2017                                  *
. *               Updated:                February 14, 2019                       
>                                         *
. *       Author:         Amber Boydstun                                          
>                         *
. *       Purpose:        Analyze NYT & WaPo data across 11 time points   *
. *     ****************************************************************  *
. 
. #delimit ; 
delimiter now ;
. *** Use dataset;
. use Boydstun_Lawrence_data.dta, replace;

. *** NOTES ON TIME POINTS
> 1. June 16th, 2015     Trump launches campaign
> 2. Aug 6th, 20151st Republican debate/Megyn Kelly
> 3. Dec 7th, 2015Trump calls for banning Muslims
> 4. Feb 1st, 2016Trump loses Iowa
> 5. March 15th, 2016Super Tuesday II – Rubio exits
> 6. May 3rd, 2016Cruz and Kasich exit
> 7. May 26th, 2016Trump reaches delegate threshold
> 8. Aug 1st, 2016Trump attacks Gold Star family
> 9. Sept 26th, 20161st presidential debate
> 10. Oct 7th, 2016Trump hot mic moment
> 11. Oct 28th, 2016Comey’s letter to Congress
> ;
. ***************************************************;
. ***     ANALYSIS FOR PERSPECTIVES ON POLITICS   ***;
. ***************************************************;
. tab2 blog serious, row;

-> tabulation of blog by serious  

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |        Serious
      blog |         0          1 |     Total
-----------+----------------------+----------
         0 |       358         67 |       425 
           |     84.24      15.76 |    100.00 
-----------+----------------------+----------
         1 |       892        200 |     1,092 
           |     81.68      18.32 |    100.00 
-----------+----------------------+----------
     Total |     1,250        267 |     1,517 
           |     82.40      17.60 |    100.00 


. tab2 blog clown, row;

-> tabulation of blog by clown  

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |         Clown
      blog |         0          1 |     Total
-----------+----------------------+----------
         0 |       354         71 |       425 
           |     83.29      16.71 |    100.00 
-----------+----------------------+----------
         1 |       924        168 |     1,092 
           |     84.62      15.38 |    100.00 
-----------+----------------------+----------
     Total |     1,278        239 |     1,517 
           |     84.25      15.75 |    100.00 


. ttest serious, by(blog);

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     425    .1576471    .0176973    .3648392    .1228617    .1924324
       1 |   1,092    .1831502    .0117101    .3869668    .1601732    .2061271
---------+--------------------------------------------------------------------
combined |   1,517    .1760053    .0097808    .3809502    .1568199    .1951907
---------+--------------------------------------------------------------------
    diff |           -.0255031    .0217772               -.0682198    .0172135
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -1.1711
Ho: diff = 0                                     degrees of freedom =     1515

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.1209         Pr(|T| > |t|) = 0.2417          Pr(T > t) = 0.8791

. ttest clown, by(blog);

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     425    .1670588    .0181159     .373468    .1314507    .2026669
       1 |   1,092    .1538462    .0109233    .3609665     .132413    .1752793
---------+--------------------------------------------------------------------
combined |   1,517    .1575478    .0093568    .3644366    .1391941    .1759015
---------+--------------------------------------------------------------------
    diff |            .0132127    .0208399               -.0276654    .0540907
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   0.6340
Ho: diff = 0                                     degrees of freedom =     1515

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.7369         Pr(|T| > |t|) = 0.5262          Pr(T > t) = 0.2631

. tab blog, freq;

       blog |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        425       28.00       28.00
          1 |      1,093       72.00      100.00
------------+-----------------------------------
      Total |      1,518      100.00

. *******LOOKING AT CORRELATIONS*******;
. corr serious contender_pos;
(obs=1,517)

             |  serious conten~s
-------------+------------------
     serious |   1.0000
contender_~s |   0.1575   1.0000


. corr clown contender_neg;
(obs=1,517)

             |    clown conten~g
-------------+------------------
       clown |   1.0000
contender_~g |   0.1054   1.0000


. *******LOOKING AT EDITORIALS VS. HARD NEWS IN PRINT ARTICLES*******;
. drop if blog==1;
(1,093 observations deleted)

. tab locationtypel;

                          locationtypel |      Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
                     a section, pg. a14 |          1        0.24        0.24
                      a section,pg. a01 |          1        0.24        0.47
                     a section; pg. a01 |         11        2.59        3.06
                     a section; pg. a02 |          4        0.94        4.00
                     a section; pg. a04 |          4        0.94        4.94
                     a section; pg. a05 |          1        0.24        5.18
                     a section; pg. a06 |          4        0.94        6.12
                     a section; pg. a07 |          5        1.18        7.29
                     a section; pg. a08 |          2        0.47        7.76
                     a section; pg. a09 |          1        0.24        8.00
                     a section; pg. a10 |          1        0.24        8.24
                     a section; pg. a11 |          1        0.24        8.47
                     a section; pg. a13 |          2        0.47        8.94
                     a section; pg. a16 |          3        0.71        9.65
                     a section; pg. a17 |          1        0.24        9.88
                    a- section, pg. a01 |          2        0.47       10.35
                    a- section, pg. a02 |          1        0.24       10.59
                    a- section, pg. a06 |          1        0.24       10.82
                    a- section; pg. a02 |          1        0.24       11.06
                    a- section; pg. a04 |          1        0.24       11.29
                    a-section; pg. a 15 |          1        0.24       11.53
                     a-section; pg. a01 |         10        2.35       13.88
                     a-section; pg. a02 |          3        0.71       14.59
                     a-section; pg. a03 |          1        0.24       14.82
                     a-section; pg. a04 |          9        2.12       16.94
                     a-section; pg. a05 |          2        0.47       17.41
                     a-section; pg. a06 |          7        1.65       19.06
                     a-section; pg. a07 |          4        0.94       20.00
                     a-section; pg. a08 |          2        0.47       20.47
                     a-section; pg. a12 |          2        0.47       20.94
                     a-section; pg. a15 |          1        0.24       21.18
                     a-section; pg. a16 |          1        0.24       21.41
                     a-section; pg. a17 |          1        0.24       21.65
                     a-section; pg. a19 |          1        0.24       21.88
                     a_section; pg. a02 |          1        0.24       22.12
                     a_section; pg. a06 |          1        0.24       22.35
               editorial copy ; pg. a18 |          1        0.24       22.59
               editorial copy ; pg. a23 |          1        0.24       22.82
                editorial copy; pg. a14 |          4        0.94       23.76
                editorial copy; pg. a15 |          2        0.47       24.24
                editorial copy; pg. a16 |          3        0.71       24.94
                editorial copy; pg. a17 |          3        0.71       25.65
                editorial copy; pg. a18 |          3        0.71       26.35
                editorial copy; pg. a19 |          7        1.65       28.00
                editorial copy; pg. a21 |          1        0.24       28.24
                editorial copy; pg. a22 |          1        0.24       28.47
                editorial copy; pg. a23 |          2        0.47       28.94
                       editorial pg.a18 |          1        0.24       29.18
                    editorial, pg. a 16 |          1        0.24       29.41
                     editorial, pg. a14 |          1        0.24       29.65
                     editorial, pg. a19 |          1        0.24       29.88
                         editorial; a19 |          1        0.24       30.12
                     editorial; pg. a13 |          2        0.47       30.59
                     editorial; pg. a14 |          2        0.47       31.06
                     editorial; pg. a15 |          5        1.18       32.24
                     editorial; pg. a16 |          2        0.47       32.71
                     editorial; pg. a17 |          5        1.18       33.88
                     editorial; pg. a18 |          3        0.71       34.59
                     editorial; pg. a19 |          6        1.41       36.00
                     editorial; pg. a21 |          1        0.24       36.24
                     editorial; pg. a22 |          1        0.24       36.47
                     editorial; pg. a23 |          1        0.24       36.71
                              education |          2        0.47       37.18
                        health; pg. e04 |          1        0.24       37.41
                         metro; pg. b01 |          2        0.47       37.88
                         metro; pg. b02 |          2        0.47       38.35
                         metro; pg. b03 |          4        0.94       39.29
                         metro; pg. b08 |          1        0.24       39.53
                              newspaper |          4        0.94       40.47
                                 nytnow |          2        0.47       40.94
                                opinion |          8        1.88       42.82
                opinion; campaign-stops |          3        0.71       43.53
section ; column 0' politics; news an.. |          1        0.24       43.76
section ; column 0; buisness/financia.. |          1        0.24       44.00
section ; column 0; business/financia.. |          1        0.24       44.24
       section ; column 0; express; pg. |          1        0.24       44.47
      section ; column 0; express; pg.  |          1        0.24       44.71
section ; column 0; national desk; le.. |          1        0.24       44.94
 section ; column 0; national desk; pg. |          1        0.24       45.18
section ; column 0; op-ed; op-ed colu.. |          1        0.24       45.41
section ; column 0; oped; contributin.. |          1        0.24       45.65
section ; column 0; oped; op-ed colum.. |          2        0.47       46.12
section ; column 0; oped; op-ed contr.. |          1        0.24       46.35
section ; column 0; oped; op-ed contr.. |          1        0.24       46.59
       section ; column 0; politics, pg |          2        0.47       47.06
section ; column 0; politics; a parod.. |          1        0.24       47.29
      section ; column 0; politics; pg. |          2        0.47       47.76
     section ; column 0; politics; pg.  |          8        1.88       49.65
       section ; column 0; poltics; pg. |          1        0.24       49.88
  section ; column 0; style desk ; pg.  |          1        0.24       50.12
section ; column 0;politics; reporter.. |          1        0.24       50.35
section ;column 0; magazine desk; not.. |          1        0.24       50.59
section a ; column 0; national desk; .. |          1        0.24       50.82
section a ; column 0; national desk; .. |          1        0.24       51.06
section a' column 0' editorial desk' .. |          1        0.24       51.29
section a, column 0, national desk, p.. |          1        0.24       51.53
section a, column 0, national desk, p.. |          1        0.24       51.76
                       section a. pg.23 |          1        0.24       52.00
section a: colum 0; editorial desk; l.. |          1        0.24       52.24
section a: colum 0; metropolitan desk.. |          1        0.24       52.47
section a: column 0; editorial desk; .. |          1        0.24       52.71
section a; column 0, editorial desk; .. |          1        0.24       52.94
section a; column 0, metropolitan, pg.. |          1        0.24       53.18
section a; column 0, national desk, p.. |          1        0.24       53.41
section a; column 0; editorial desk; .. |          1        0.24       53.65
section a; column 0; editorial desk; .. |          1        0.24       53.88
section a; column 0; editorial desk; .. |          1        0.24       54.12
section a; column 0; editorial desk; .. |          1        0.24       54.35
section a; column 0; editorial desk; .. |          2        0.47       54.82
section a; column 0; editorial desk; .. |          3        0.71       55.53
section a; column 0; editorial desk; .. |          1        0.24       55.76
section a; column 0; editorial desk; .. |          1        0.24       56.00
section a; column 0; editorial desk; .. |          1        0.24       56.24
section a; column 0; editorial desk; .. |          1        0.24       56.47
section a; column 0; editorial desk; .. |          1        0.24       56.71
section a; column 0; editorial desk; .. |          1        0.24       56.94
section a; column 0; editorial desk; .. |          2        0.47       57.41
section a; column 0; editorial desk; .. |          4        0.94       58.35
section a; column 0; editorial desk; .. |          1        0.24       58.59
section a; column 0; editorial desk; .. |          1        0.24       58.82
section a; column 0; editorial desk; .. |          1        0.24       59.06
section a; column 0; editorial desk; .. |          1        0.24       59.29
section a; column 0; editorial desk; .. |          4        0.94       60.24
section a; column 0; editorial desk; .. |          2        0.47       60.71
section a; column 0; editorial desk; .. |          2        0.47       61.18
section a; column 0; editorial desk; .. |          1        0.24       61.41
section a; column 0; editorial desk; .. |          3        0.71       62.12
section a; column 0; editorialdesk; o.. |          1        0.24       62.35
section a; column 0; metropolitan des.. |          1        0.24       62.59
section a; column 0; metropolitan des.. |          2        0.47       63.06
section a; column 0; metropolitan des.. |          1        0.24       63.29
section a; column 0; metropolitan des.. |          1        0.24       63.53
section a; column 0; metropolitan des.. |          1        0.24       63.76
section a; column 0; national desk: p.. |          1        0.24       64.00
section a; column 0; national desk; f.. |          1        0.24       64.24
section a; column 0; national desk; f.. |          2        0.47       64.71
section a; column 0; national desk; f.. |          1        0.24       64.94
section a; column 0; national desk; f.. |          1        0.24       65.18
section a; column 0; national desk; h.. |          1        0.24       65.41
section a; column 0; national desk; i.. |          1        0.24       65.65
section a; column 0; national desk; n.. |          2        0.47       66.12
section a; column 0; national desk; o.. |          1        0.24       66.35
section a; column 0; national desk; p.. |          1        0.24       66.59
section a; column 0; national desk; p.. |         21        4.94       71.53
section a; column 0; national desk; p.. |          1        0.24       71.76
section a; column 0; national desk; p.. |          1        0.24       72.00
section a; column 0; national desk; p.. |          1        0.24       72.24
section a; column 0; national desk; p.. |          7        1.65       73.88
section a; column 0; national desk; p.. |          5        1.18       75.06
section a; column 0; national desk; p.. |          4        0.94       76.00
section a; column 0; national desk; p.. |          4        0.94       76.94
section a; column 0; national desk; p.. |          1        0.24       77.18
section a; column 0; national desk; p.. |          1        0.24       77.41
section a; column 0; national desk; p.. |          1        0.24       77.65
section a; column 0; national desk; p.. |          1        0.24       77.88
section a; column 0; national desk; p.. |          2        0.47       78.35
section a; column 0; national desk; p.. |          1        0.24       78.59
section a; column 0; national desk; p.. |          1        0.24       78.82
section a; column 0; national desk; t.. |          1        0.24       79.06
section a; column 0; national desk; t.. |          1        0.24       79.29
section a; column 0; national desk; t.. |          1        0.24       79.53
section a; column 0; national desk; t.. |          1        0.24       79.76
section a; column 0; national desk; t.. |          1        0.24       80.00
section b, column 0, sports desk; on .. |          1        0.24       80.24
section b; column 0; business/finance.. |          1        0.24       80.47
section b; column 0; business/finance.. |          1        0.24       80.71
section b; column 0; business/financi.. |          1        0.24       80.94
section b; column 0; business/financi.. |          1        0.24       81.18
section b; column 0; business/financi.. |          1        0.24       81.41
section b; column 0; business/financi.. |          1        0.24       81.65
section b; column 0; business/financi.. |          1        0.24       81.88
section b; column 0; style desk; fash.. |          1        0.24       82.12
section c; column 0; movies, performi.. |          1        0.24       82.35
section c; column 0; movies, performi.. |          1        0.24       82.59
section c; column 0; the arts/cultura.. |          2        0.47       83.06
           section: a- section; pg. a04 |          1        0.24       83.29
                       section: pg. a22 |          1        0.24       83.53
                        section: pg.c01 |          1        0.24       83.76
                section: style, pg. c02 |          1        0.24       84.00
       section; column 0 politics; pg.  |          1        0.24       84.24
          section; column 0, politics,  |          1        0.24       84.47
       section; column 0; express; pg.  |          1        0.24       84.71
   section; column 0; foreign desk; pg. |          1        0.24       84.94
section; column 0; national desk; let.. |          1        0.24       85.18
   section; column 0; national desk; pg |          1        0.24       85.41
section; column 0; national desk; rep.. |          1        0.24       85.65
        section; column 0; politics; pg |          1        0.24       85.88
       section; column 0; politics; pg. |          3        0.71       86.59
      section; column 0; politics; pg.  |          3        0.71       87.29
        section; column 0; politics;pg. |          3        0.71       88.00
sectionn d; column 0; styledesk; camp.. |          1        0.24       88.24
sections a; column 0; national desk; .. |          1        0.24       88.47
secton b; colun 0; business/financial.. |          1        0.24       88.71
                         style: pg. c01 |          1        0.24       88.94
                         style; pg. c01 |          4        0.94       89.88
                         style; pg. c02 |          1        0.24       90.12
                         style; pg. c09 |          1        0.24       90.35
                             technology |          1        0.24       90.59
                                 upshot |          1        0.24       90.82
                           us, politics |          2        0.47       91.29
                           us; politics |         32        7.53       98.82
                            us;politics |          2        0.47       99.29
                                   wapo |          2        0.47       99.76
                       weekend; pg. t27 |          1        0.24      100.00
----------------------------------------+-----------------------------------
                                  Total |        425      100.00

. order locationtypel locationtype;

. gen editorial=0;

. replace editorial = 1 if 
>         strpos(locationtypel, "editorial") |
>         strpos(locationtypel, "op-ed") |
>         strpos(locationtypel, "opinion") ;
(120 real changes made)

. tab locationtypel editorial;

                      |       editorial
        locationtypel |         0          1 |     Total
----------------------+----------------------+----------
   a section, pg. a14 |         1          0 |         1 
    a section,pg. a01 |         1          0 |         1 
   a section; pg. a01 |        11          0 |        11 
   a section; pg. a02 |         4          0 |         4 
   a section; pg. a04 |         4          0 |         4 
   a section; pg. a05 |         1          0 |         1 
   a section; pg. a06 |         4          0 |         4 
   a section; pg. a07 |         5          0 |         5 
   a section; pg. a08 |         2          0 |         2 
   a section; pg. a09 |         1          0 |         1 
   a section; pg. a10 |         1          0 |         1 
   a section; pg. a11 |         1          0 |         1 
   a section; pg. a13 |         2          0 |         2 
   a section; pg. a16 |         3          0 |         3 
   a section; pg. a17 |         1          0 |         1 
  a- section, pg. a01 |         2          0 |         2 
  a- section, pg. a02 |         1          0 |         1 
  a- section, pg. a06 |         1          0 |         1 
  a- section; pg. a02 |         1          0 |         1 
  a- section; pg. a04 |         1          0 |         1 
  a-section; pg. a 15 |         1          0 |         1 
   a-section; pg. a01 |        10          0 |        10 
   a-section; pg. a02 |         3          0 |         3 
   a-section; pg. a03 |         1          0 |         1 
   a-section; pg. a04 |         9          0 |         9 
   a-section; pg. a05 |         2          0 |         2 
   a-section; pg. a06 |         7          0 |         7 
   a-section; pg. a07 |         4          0 |         4 
   a-section; pg. a08 |         2          0 |         2 
   a-section; pg. a12 |         2          0 |         2 
   a-section; pg. a15 |         1          0 |         1 
   a-section; pg. a16 |         1          0 |         1 
   a-section; pg. a17 |         1          0 |         1 
   a-section; pg. a19 |         1          0 |         1 
   a_section; pg. a02 |         1          0 |         1 
   a_section; pg. a06 |         1          0 |         1 
editorial copy ; pg.. |         0          1 |         1 
editorial copy ; pg.. |         0          1 |         1 
editorial copy; pg... |         0          4 |         4 
editorial copy; pg... |         0          2 |         2 
editorial copy; pg... |         0          3 |         3 
editorial copy; pg... |         0          3 |         3 
editorial copy; pg... |         0          3 |         3 
editorial copy; pg... |         0          7 |         7 
editorial copy; pg... |         0          1 |         1 
editorial copy; pg... |         0          1 |         1 
editorial copy; pg... |         0          2 |         2 
     editorial pg.a18 |         0          1 |         1 
  editorial, pg. a 16 |         0          1 |         1 
   editorial, pg. a14 |         0          1 |         1 
   editorial, pg. a19 |         0          1 |         1 
       editorial; a19 |         0          1 |         1 
   editorial; pg. a13 |         0          2 |         2 
   editorial; pg. a14 |         0          2 |         2 
   editorial; pg. a15 |         0          5 |         5 
   editorial; pg. a16 |         0          2 |         2 
   editorial; pg. a17 |         0          5 |         5 
   editorial; pg. a18 |         0          3 |         3 
   editorial; pg. a19 |         0          6 |         6 
   editorial; pg. a21 |         0          1 |         1 
   editorial; pg. a22 |         0          1 |         1 
   editorial; pg. a23 |         0          1 |         1 
            education |         2          0 |         2 
      health; pg. e04 |         1          0 |         1 
       metro; pg. b01 |         2          0 |         2 
       metro; pg. b02 |         2          0 |         2 
       metro; pg. b03 |         4          0 |         4 
       metro; pg. b08 |         1          0 |         1 
            newspaper |         4          0 |         4 
               nytnow |         2          0 |         2 
              opinion |         0          8 |         8 
opinion; campaign-s.. |         0          3 |         3 
section ; column 0'.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         0          1 |         1 
section ; column 0;.. |         0          1 |         1 
section ; column 0;.. |         0          2 |         2 
section ; column 0;.. |         0          1 |         1 
section ; column 0;.. |         0          1 |         1 
section ; column 0;.. |         2          0 |         2 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         2          0 |         2 
section ; column 0;.. |         8          0 |         8 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ; column 0;.. |         1          0 |         1 
section ;column 0; .. |         1          0 |         1 
section a ; column .. |         1          0 |         1 
section a ; column .. |         1          0 |         1 
section a' column 0.. |         0          1 |         1 
section a, column 0.. |         1          0 |         1 
section a, column 0.. |         1          0 |         1 
     section a. pg.23 |         1          0 |         1 
section a: colum 0;.. |         0          1 |         1 
section a: colum 0;.. |         1          0 |         1 
section a: column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          2 |         2 
section a; column 0.. |         0          3 |         3 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          2 |         2 
section a; column 0.. |         0          4 |         4 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          4 |         4 
section a; column 0.. |         0          2 |         2 
section a; column 0.. |         0          2 |         2 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         0          3 |         3 
section a; column 0.. |         0          1 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         2          0 |         2 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         2          0 |         2 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         2          0 |         2 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |        21          0 |        21 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         7          0 |         7 
section a; column 0.. |         5          0 |         5 
section a; column 0.. |         4          0 |         4 
section a; column 0.. |         4          0 |         4 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         2          0 |         2 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section a; column 0.. |         1          0 |         1 
section b, column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section b; column 0.. |         1          0 |         1 
section c; column 0.. |         1          0 |         1 
section c; column 0.. |         1          0 |         1 
section c; column 0.. |         2          0 |         2 
section: a- section.. |         1          0 |         1 
     section: pg. a22 |         1          0 |         1 
      section: pg.c01 |         1          0 |         1 
section: style, pg... |         1          0 |         1 
section; column 0 p.. |         1          0 |         1 
section; column 0, .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         1          0 |         1 
section; column 0; .. |         3          0 |         3 
section; column 0; .. |         3          0 |         3 
section; column 0; .. |         3          0 |         3 
sectionn d; column .. |         1          0 |         1 
sections a; column .. |         1          0 |         1 
secton b; colun 0; .. |         1          0 |         1 
       style: pg. c01 |         1          0 |         1 
       style; pg. c01 |         4          0 |         4 
       style; pg. c02 |         1          0 |         1 
       style; pg. c09 |         1          0 |         1 
           technology |         1          0 |         1 
               upshot |         1          0 |         1 
         us, politics |         2          0 |         2 
         us; politics |        32          0 |        32 
          us;politics |         2          0 |         2 
                 wapo |         2          0 |         2 
     weekend; pg. t27 |         1          0 |         1 
----------------------+----------------------+----------
                Total |       305        120 |       425 


. tab2 editorial serious, row;

-> tabulation of editorial by serious  

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |        Serious
 editorial |         0          1 |     Total
-----------+----------------------+----------
         0 |       265         40 |       305 
           |     86.89      13.11 |    100.00 
-----------+----------------------+----------
         1 |        93         27 |       120 
           |     77.50      22.50 |    100.00 
-----------+----------------------+----------
     Total |       358         67 |       425 
           |     84.24      15.76 |    100.00 


. tab2 editorial clown, row;

-> tabulation of editorial by clown  

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |         Clown
 editorial |         0          1 |     Total
-----------+----------------------+----------
         0 |       263         42 |       305 
           |     86.23      13.77 |    100.00 
-----------+----------------------+----------
         1 |        91         29 |       120 
           |     75.83      24.17 |    100.00 
-----------+----------------------+----------
     Total |       354         71 |       425 
           |     83.29      16.71 |    100.00 


. ttest serious, by(editorial);

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     305    .1311475    .0193605    .3381164      .09305    .1692451
       1 |     120        .225    .0382797    .4193332    .1492024    .3007976
---------+--------------------------------------------------------------------
combined |     425    .1576471    .0176973    .3648392    .1228617    .1924324
---------+--------------------------------------------------------------------
    diff |           -.0938525    .0390958               -.1706986   -.0170063
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.4006
Ho: diff = 0                                     degrees of freedom =      423

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0084         Pr(|T| > |t|) = 0.0168          Pr(T > t) = 0.9916

. ttest clown, by(editorial);

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     305    .1377049    .0197636    .3451563    .0988142    .1765957
       1 |     120    .2416667    .0392433    .4298883    .1639611    .3193722
---------+--------------------------------------------------------------------
combined |     425    .1670588    .0181159     .373468    .1314507    .2026669
---------+--------------------------------------------------------------------
    diff |           -.1039617    .0399738               -.1825337   -.0253898
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.6007
Ho: diff = 0                                     degrees of freedom =      423

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0048         Pr(|T| > |t|) = 0.0096          Pr(T > t) = 0.9952

. 
end of do-file

